public class AmImplementation implements AnInterface{
    @Override public void firstMethod(){
        System.out.println("firstMethod");
    }
    @Override public void secondMethod(){
        System.out.println("secondMethod");
    }

    public static void main(String[] args) {
        AnInterface i = new AmImplementation();
        i.firstMethod();
        i.secondMethod();
    }
}
